package com.bootdo.redis;

import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReadWriteLock;

public class DummyReadWriteLock implements ReadWriteLock {
private Lock lock = new DummyReadWriteLock.DummyLock();

        DummyReadWriteLock() {
        }

public Lock readLock() {
        return this.lock;
        }

public Lock writeLock() {
        return this.lock;
        }

static class DummyLock implements Lock {
    DummyLock() {
    }

    public void lock() {
    }

    public void lockInterruptibly() throws InterruptedException {
    }

    public boolean tryLock() {
        return true;
    }

    public boolean tryLock(long paramLong, TimeUnit paramTimeUnit) throws InterruptedException {
        return true;
    }

    public void unlock() {
    }

    public Condition newCondition() {
        return null;
    }
}
}